

abstract class A<T extends A<T>> {
  void func1();
}

class B extends A<B> {
  @override
  void func1() {}
}

void main() {
  B b = B();
  // is 用于判断是某个类或其子类
  print(b is A);
}
